<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets">
<body>
    <ui:composition template="/templates/template.xhtml">
    <ui:define name="body">
    <h:form id="presentationform">
        <h:panelGrid columns="1">
            <h:outputText value="#{presentationright.presentationtitle}"/>
            <h:panelGroup>
                <h:outputText value="#{presentationright.nameconfig}"/>
                <h:outputText value="#{presentationrightbean.fileName}"/>
            </h:panelGroup>
            <h:panelGroup>
                <h:panelGrid border="1" columns="1">
                    <h:panelGroup>
                        <h:outputText value="#{presentationright.topcomment}"/>
                        <h:outputText value="#{presentationrightbean.deltaConfig.configList.headerComment}"/>
                    </h:panelGroup>
                    <h:panelGroup>
                        <h:outputText value="#{presentationright.endcomment}"/>
                        <h:outputText value="#{presentationrightbean.deltaConfig.configList.footerComment}"/>
                    </h:panelGroup>
                </h:panelGrid>
                <h:dataTable border="1" value="#{presentationrightbean.deltaConfig.configList.elements}"
                             var="config">
                    <h:column>
                        <h:outputText value="#{config.key}"/>
                    </h:column>
                    <h:column>
                        <h:outputText value=" = "/>
                    </h:column>
                    <h:column>
                        <h:outputText value="#{config.value}"/>
                    </h:column>
                </h:dataTable>
                <h:commandButton value="#{presentationright.actionsave}" action="#{presentationrightbean.extractSettings}"/>
                <h:commandButton value="#{presentationright.actioncancel}" action="#{presentationrightbean.cancelPresent}" />
            </h:panelGroup>
        </h:panelGrid>
    </h:form>
    </ui:define>
</ui:composition>
</body>
</html>